package com.finger.gulimall.cart.feign;

import com.finger.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient("gulimall-product")
public interface ProductRemoteService {

    @RequestMapping("product/skuinfo/cart/info/{skuId}")
    public R cartInfo(@PathVariable("skuId") Long skuId);

    @RequestMapping("product/skusaleattrvalue/attrWithValues")
    public R getAttrForCartItem(@RequestParam("skuId") Long skuId);

    @ResponseBody
    @GetMapping("/getNewItemPriForCart")
    public R getNewItemPriceForCart(@RequestParam("skus") List<Long> skus);
}
